package com.ekuaitu.kuaitustaff.bean;

import java.io.Serializable;


public class CarTaskStateBean implements Serializable {


    /**
     * errCode : 0
     * message : 成功
     * attachment : {"hasOrderOrNot":2,"staffCarOrderModel":{"carId":91,"workType":1,"orderId":108812,"distributeType":2,"title":"奇瑞","taskNameArray":["临时挪车"],"createTime":1513150361000,"latitude":39.910054,"longitude":116.459254,"locationName":"北京市海淀区民族大学西路30号","status":10,"isOnline":1,"receiveTime":1513150398000,"orderNum":"11513150361949","licenseTag":"京QC92G1","parkName":null,"parkType":null,"brandModel":"奇瑞EQ","isUserWorkOrder":"0","unReciveTime":604560,"mileage":160,"carImg":"1113161","shortName":"挪","isBigPic":1,"picColor":{"g":200,"b":200,"r":200},"isOpenCheck":0,"androidIcon":"","volatage":11.458},"action":{"actionType":0,"latitude":38.1232,"longitude":110.879,"location":"中国北京(天安门附近100米)"}}
     */

    private int errCode;
    private String message;
    private AttachmentBean attachment;

    public int getErrCode() {
        return errCode;
    }

    public void setErrCode(int errCode) {
        this.errCode = errCode;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public AttachmentBean getAttachment() {
        return attachment;
    }

    public void setAttachment(AttachmentBean attachment) {
        this.attachment = attachment;
    }

    public static class AttachmentBean implements Serializable {
        /**
         * hasOrderOrNot : 2
         * staffCarOrderModel : {"carId":91,"workType":1,"orderId":108812,"distributeType":2,"title":"奇瑞","taskNameArray":["临时挪车"],"createTime":1513150361000,"latitude":39.910054,"longitude":116.459254,"locationName":"北京市海淀区民族大学西路30号","status":10,"isOnline":1,"receiveTime":1513150398000,"orderNum":"11513150361949","licenseTag":"京QC92G1","parkName":null,"parkType":null,"brandModel":"奇瑞EQ","isUserWorkOrder":"0","unReciveTime":604560,"mileage":160,"carImg":"1113161","shortName":"挪","isBigPic":1,"picColor":{"g":200,"b":200,"r":200},"isOpenCheck":0,"androidIcon":"","volatage":11.458}
         * action : {"actionType":0,"latitude":38.1232,"longitude":110.879,"location":"中国北京(天安门附近100米)"}
         */

        public String hasOrderOrNot;//    1:没有工单 2：有工单
        public CarOrderBean.AttachmentBean staffCarOrderModel;//   如果有工单，此值有数据
        public StaffOrderBean.AttachmentBean.ActionBean action;//   工单action

        public String getHasOrderOrNot() {
            return hasOrderOrNot;
        }

        public void setHasOrderOrNot(String hasOrderOrNot) {
            this.hasOrderOrNot = hasOrderOrNot;
        }

        public CarOrderBean.AttachmentBean getStaffCarOrderModel() {
            return staffCarOrderModel;
        }

        public void setStaffCarOrderModel(CarOrderBean.AttachmentBean staffCarOrderModel) {
            this.staffCarOrderModel = staffCarOrderModel;
        }

        public StaffOrderBean.AttachmentBean.ActionBean getAction() {
            return action;
        }

        public void setAction(StaffOrderBean.AttachmentBean.ActionBean action) {
            this.action = action;
        }
    }
}
